// ignore_for_file: prefer_const_constructors_in_immutables, non_constant_identifier_names, prefer_const_constructors

import 'package:flutter/material.dart';
import 'package:flutter_getx_1/page/dependency/put_find/controller.dart';
import 'package:get/get.dart';

class PutFindPage2 extends StatelessWidget {
  PutFindPage2({super.key});
  // 你可以让Get找到一个正在被其他页面使用的Controller，并将它返回给你。
  final controller = Get.find<firstController>();
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: Text(
          "page2"
        ),
      ),
      body: Center(
        child: Column(
          children: <Widget>[
            GetX<firstController>(
              init: controller,
              initState: (_) {
              },
              builder: (_) => Text("value => ${_.count}"),
              
            
            )
          ],
        ),
      )
    );
  }
}